|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
Sequence.java | - | - | - | - |
|
1 |
/*
|
|
2 |
* $Id: Sequence.java,v 1.1 2004/12/15 14:18:11 patforna Exp $
|
|
3 |
*
|
|
4 |
* Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
|
|
5 |
* Berne University of Applied Sciences
|
|
6 |
* School of Engineering and Information Technology
|
|
7 |
* All rights reserved.
|
|
8 |
*/
|
|
9 |
package bexee.model.activity;
|
|
10 |
|
|
11 |
import java.util.List;
|
|
12 |
|
|
13 |
/**
|
|
14 |
* A sequence structured activity. The contained activities will be executed in
|
|
15 |
* the order they have been added to this sequence.
|
|
16 |
*
|
|
17 |
* @author Patric Fornasier
|
|
18 |
* @author Pawel Kowalski
|
|
19 |
* @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:11 $
|
|
20 |
*/
|
|
21 |
public interface Sequence extends Activity { |
|
22 |
|
|
23 |
//**************************************************/
|
|
24 |
// xml elements
|
|
25 |
//**************************************************/
|
|
26 |
/**
|
|
27 |
* Add an activity to the activities contained in this sequence structured
|
|
28 |
* activitiy. The added activity will be appended to the end of the
|
|
29 |
* activities list.
|
|
30 |
*
|
|
31 |
* @param activity
|
|
32 |
* an <code>Activity</code> value
|
|
33 |
*/
|
|
34 |
public void addActivity(Activity activity); |
|
35 |
|
|
36 |
/**
|
|
37 |
* Add an activity to the activities contained in this sequence structured
|
|
38 |
* activitiy. The added activity will be added at the position specified.
|
|
39 |
*
|
|
40 |
* @param position
|
|
41 |
* an <code>int</code> value
|
|
42 |
* @param activity
|
|
43 |
* an <code>Activity</code> value
|
|
44 |
*/
|
|
45 |
public void addActivity(int position, Activity activity); |
|
46 |
|
|
47 |
/**
|
|
48 |
* Set the whole list of activities.
|
|
49 |
*
|
|
50 |
* @uml.property name="activities"
|
|
51 |
* @uml.associationEnd multiplicity="(0 -1)" javaType="java.util.Collection"
|
|
52 |
* aggregation= "composite"
|
|
53 |
* elementType="bexee.model.activity.Activity"
|
|
54 |
* @param activities
|
|
55 |
* a <code>List</code> value
|
|
56 |
*/
|
|
57 |
public void setActivities(List activities); |
|
58 |
|
|
59 |
/**
|
|
60 |
* Get the list of all contained activities.
|
|
61 |
*
|
|
62 |
* @return a <code>List</code> value
|
|
63 |
*/
|
|
64 |
public List getActivities();
|
|
65 |
} |
|